package com.arrlist;

import java.util.ArrayList;
import java.util.List;

public class ArrayListDemo {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<String>();
        arrayList.add("112");
        arrayList.add("221");

        arrayList.set(1,"12111");
        arrayList.add(1,"1");
        System.out.println(arrayList);
    }
}
